<div class="separator">Select Invoice</div>
<table class="datagrid" id="invoiceBalanceList">
  <thead class="datagrid">
    <tr>
      <th>
        Invoice#
      </th>
      <th>
        Date
      </th>
      <th>
        Due
      </th>
      <th>
        Bal
      </th>
      <th style="width:16px;">
      </th>
    </tr>
  </thead>
  <tbody class="datagrid" style="height:75px;">
    <?php foreach($receivables as $receivable):?>
      <tr>
        <td>
            <?php 
              echo 
                link_to(
                  $receivable['invoice_id'],
                  'invoice/index',
                  array(
                    'onClick'=>$click_callback.'(\''.$receivable['invoice_id'].'\','.$receivable['total'].',\''.$receivable['iden2'].'\'); return false;',
                  )
                );
            ?>
        </td>
        <td>
          <?php echo $receivable['document_date']?>
        </td>
        <td>
          <?php echo $receivable['due_date']?>
        </td>
        <td style="text-align:right">
          <?php echo number_format($receivable['total'],2);?>
        </td>
        <td>
        </td>
      </tr>
    <?php endforeach;?>
  </tbody>
</table>